<template>
  <div>
    <div class="model-container">
      <div class="model-container-title">案例</div>
      <y-button title='提示' @click="toast"></y-button>
    </div>
  </div>
</template>

<script lang='ts'>
import { getCurrentInstance } from 'vue'
export default {
  name: 'ToastIntro',
  setup(){
    const _this: any = getCurrentInstance()?.proxy || {}
    const toast = ()=>{
       _this.$toast.info({
         message: '全局提示'
       })
    }
    return {
      toast
    }
  }
}
</script>

<style lang='scss' scoped>
@import "../model.scss";
</style>